package cn.manyufun.myf.ui.main.contract;

import cn.manyufun.myf.bean.SearchBean;
import cn.manyufun.myf.common.base.BaseModel;
import cn.manyufun.myf.common.base.BasePresenter;
import cn.manyufun.myf.common.base.BaseView;
import rx.Observable;

/**
 * Created by Xiao on 2018-02-03.
 */

public interface SearchContract {
    interface Model extends BaseModel {
        Observable<SearchBean> search(int pageIndex, int pageSize, String keyword);
    }

    interface View extends BaseView {
        void returnSearchResult(SearchBean followListBean);
    }

    abstract static class Presenter extends BasePresenter<SearchContract.View, SearchContract.Model> {
        public abstract void loadSearchRequest(int pageIndex, int pageSize, String keyword);
    }
}
